from urllib import request
import urllib



data = {"arguments":[
		{"conditions":"[]"},{"from":"0"},{"pagesize":"15"},
		{"sortField":"dynProperties.goodsPubTime"},{"sortType":"desc"}]}
url = "https://www.greatgas.cn/prod/rest/goods/mall/searchByConditions"
bytes = urllib.parse.urlencode(data).encode('utf-8') 
req = request.Request(url, bytes)
req.add_header("User-Agent", 
	"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36")


with request.urlopen(req) as r:
	print("status >>> ", r.status, r.reason)
	rsp = r.read()
	body = rsp.decode("utf-8")
	print(body)
